package com.csc.banking.form;


import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.Digits;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import org.springframework.stereotype.Component;

@Component
public class TransferFundsForm
{	
	@Size(max=12, min=12)
	@Digits(fraction = 1, integer = 12)
    private String toAccountNumber;

	@Size( min=1)
	@DecimalMin("0")
	@DecimalMax("100000000")    
    private String amount;

    public TransferFundsForm()
    {
    	
    }
	
	public String getToAccountNumber() 
    {
        return this.toAccountNumber;
    }

    public void setToAccountNumber(String toAccountNumber) 
    {
        this.toAccountNumber = toAccountNumber;
    }

    public String getAmount() 
    {
        return amount;
    }

    public void setAmount(String amount) 
    {
        this.amount = amount;
    }   
}
